package com.pkx.cloud.fse7.dms.deviceread.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 门禁控制器子设备
 *
 * @author ly
 * @since 2020-10-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("DmsDeviceRead")
@ApiModel(value = "DeviceRead对象", description = "读头")
public class DeviceRead implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "项目编号")
    @TableField("Gid")
    private String Gid;

    @ApiModelProperty(value = "")
    @TableField("CollectCode")
    private String CollectCode;

    @ApiModelProperty(value = "门编号")
    @TableField("DoorNo")
    private Long DoorNo;

    @ApiModelProperty(value = "地点名称")
    @TableField("Name")
    private String Name;

    @ApiModelProperty(value = "唯一标示")
    @TableField("Rid")
    private String Rid;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "")
    @TableField("DevTypeCode")
    private String DevTypeCode;

    @ApiModelProperty(value = "控制器编号")
    @TableField("DevNo")
    private Long DevNo;

    @ApiModelProperty(value = "所属门禁区域")
    @TableField("DoorAreaId")
    private String DoorAreaId;

    @ApiModelProperty(value = "备注")
    @TableField("Remark")
    private String Remark;
    
    @ApiModelProperty(value = "主控id")
    @TableField(exist = false)
    private String devId;

}
